package vns.shared;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import com.google.appengine.api.datastore.Key;

public class ActivityDTO implements Serializable{
	private Key id;
	private String type;
	private String describe;
	private Date date;
	private Set<String> objectfrom;
	private Set<String> objectto;
	
	public ActivityDTO(Key Id, String Type,String Describe,Date _Date,Set<String> Objectfrom,Set<String> Objectto){
		this.setBasicInfo(Id, Type,Describe,_Date,Objectfrom,Objectto);
	}
	
	public void setBasicInfo(Key Id, String Type,String Describe,Date _Date,Set<String> Objectfrom,Set<String> Objectto) {
		this.id = Id;
		this.type=Type;
		this.describe=Describe;
		this.date=_Date;
		this.objectfrom=Objectfrom;
		this.objectto=Objectto;
	}
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	public Set<String> getObjectfrom() {
		return objectfrom;
	}
	
	public void setObjectfrom(Set<String> Objectfrom) {
		this.objectfrom = Objectfrom;
	}

	public void addObjectfrom(String Objectfrom) {
		this.objectfrom.add(Objectfrom);
	}
	
	public void removeObjectfrom(String Objectfrom){
		this.objectto.remove(Objectfrom);
	}	
	
	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
	public Set<String> getObjectto() {
		return objectto;
	}
	
	public void setObjectto(Set<String> Objectto) {
		this.objectto = Objectto;
	}

	public void addObjectto(String Objectto) {
		this.objectto.add(Objectto);
	}
	
	public void removeObjectto(String Objectto){
		this.objectto.remove(Objectto);
	}

	public Key getId(){
		return this.id;
	}
	
	public void setId(Key Id){
		this.id=Id;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

}
